//
//  backView.m
//  CRSCMOA
//
//  Created by 王文晓 on 16/8/8.
//  Copyright © 2016年 王文晓. All rights reserved.
//

#import "backView.h"
#import "ApplyViewController.h"

@implementation backView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


//获取当前view的控制器
- (UIViewController*)viewController:(UIView *)selfView {
    for (UIView* next = [selfView superview]; next; next = next.superview) {
        UIResponder* nextResponder = [next nextResponder];
        if ([nextResponder isKindOfClass:[UIViewController class]]) {
            return (UIViewController*)nextResponder;
        }
    }
    return nil;
}


- (IBAction)confirmBtn:(UIButton *)sender {
<<<<<<< HEAD
   
    
}

- (IBAction)cancelBtn:(UIButton *)sender {
    
    self.hidden = YES;

=======
    
    self.view.hidden = YES;
    [self endEditing:YES];
}

- (IBAction)cancelBtn:(UIButton *)sender {
   
    self.view.hidden = YES;
    [self endEditing:YES];
>>>>>>> 40d131c2d157ff7092aed1c29e8dd5489e0ace3b
}











@end
